import request from '@/utils/request'

// 查询轴承型号列表
export function listModel(query) {
  return request({
    url: '/bearingData/bearingModel/list',
    method: 'get',
    params: query
  })
}

// 查询轴承型号详细
export function getModel(bid) {
  return request({
    url: '/bearingData/bearingModel/' + bid,
    method: 'get'
  })
}

// 新增轴承型号
export function addModel(data) {
  return request({
    url: '/bearingData/bearingModel',
    method: 'post',
    data: data
  })
}

// 修改轴承型号
export function updateModel(data) {
  return request({
    url: '/bearingData/bearingModel',
    method: 'put',
    data: data
  })
}

// 删除轴承型号
export function delModel(bid) {
  return request({
    url: '/bearingData/bearingModel/' + bid,
    method: 'delete'
  })
}
